import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: '',
    userName: {}
  },
  mutations: {
    // 存储token
    getUserInfo (state, value) {
      this.state = value
    },
    // 存储用户信息
    getUserName (state, value) {
      this.state.userName = value
    }
  },
  actions: {},
  modules: {}
})
